package com.linkq.ipinyin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Transient;

/**
 * @FileName BcCnCharacter
 * @Description
 * @Author wangpeng
 * @date 2024-11-13
 **/

@TableName("t_cn_character")
@Data
public class CnCharacter {

    @TableId(value = "id", type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String chCharacter;

    private String pinyin;

    /**
     * 声母
     */
    private String initial;

    /**
     * 韵母
     */
    private String vowel;

    /**
     * 音调 1、2、3、4
     */
    private String tone;

    private Integer belongText;

    private String videoUrl;

    private String pictureUrl;

    /**
     * 1：识字表 2：写字表
     */
    private String characterType;

    @Transient
    @TableField(exist = false)
    private Integer grade;

    @Transient
    @TableField(exist = false)
    private String textName;

    @Transient
    @TableField(exist = false)
    private Integer isCorrect;
}
